﻿namespace Model.Entites
{
    /// <summary>
    /// 管理员消息关联表
    /// </summary>
    [SugarTable("T_AdminMessageRelation")]
    public class TAdminMessageRelation : ModelStatusBase
    {
        /// <summary>
        /// 管理员ID
        /// </summary>
        public int AdminId { get; set; }

        /// <summary>
        /// 消息ID
        /// </summary>
        public int MsgId { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        [Navigate(NavigateType.OneToOne, nameof(MsgId))]
        public TMessage Message { get; set; }
    }
}